package com.focusmes.modules.base.factory.component;


import com.alibaba.fastjson.JSONObject;
import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaInter;
import org.jeecg.modules.online.config.exception.BusinessException;
import org.springframework.stereotype.Component;
import java.util.Map;

/**
 *@program: jeecg-boot
 *@description:
 *@author: yinkai
 *@create: 2020-03-29 16:57
 */

@Component("testJavaAdd")
public class TestJavaAdd implements CgformEnhanceJavaInter {

    @Override
    public int execute(String s, Map<String, Object> map) throws BusinessException {

        return 0;
    }

    /**
     *
     * @param s  表名
     * @param jsonObject 请求参数
     * @return
     * @throws BusinessException
     */
    @Override
    public int execute(String s, JSONObject jsonObject) throws BusinessException {
        System.out.println("java增强！");
        System.out.println(s+"==>"+jsonObject);

        return 0;
    }
}
